package symbolTable.seniorST;

import stackAndQueue.Queue;

import java.security.Key;
import java.util.Iterator;

public class TestSCHashST {
    public static void main(String[] args) {
        SeparateChainingHashST<String, Integer> sh = new SeparateChainingHashST<>(10);
        sh.put("i", 9);
        sh.put("a", 1);
        sh.put("q", 17);
        sh.put("c", 3);
        sh.put("k", 11);
        sh.put("e", 5);
        sh.put("o", 15);
        sh.put("g", 7);
        sh.put("m", 13);
//        System.out.println(sh.get("k"));
//        sh.delete("c");
        Queue<String> keys = (Queue<String>)sh.keys();
        for (String key:keys)
            System.out.println(key);
        System.out.println("------------");
        sh.delete("c");
        Queue<String> key2 = (Queue<String>)sh.keys();
        for (String key:key2)
            System.out.println(key);
    }
}
